<?php
require_once dirname(__FILE__).'/include.php';
Master::loadCoreClass("AdminControl");
$Admin = new AdminControl();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=Config::$siteName ?></title>    
<?php
require_once dirname(__FILE__).'/heard.php';
?> 		
</head>
<body>
<?php
$Admin = new AdminControl();
If (  Get::getByKey('action')=='del'){
	$Admin->delAminsNode(Get::getByKey('id'));
	Header("Location:adminsnodeList.php");
}
	$whstr  = array();
    $Arr = $Admin->listAdminsNode($whstr);
	//Admin.SetPageSizes = 8
?>
<div id="main-content">		
				<div class="content-box">
				<div class="content-box-header">					
					<h3>当前位置：<?=("Project")?>管理系统 &gt; 权限管理</h3>					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">列表</a></li>
					</ul>					
					<div class="clear"></div>					
				</div> <!-- End .content-box-header -->				
				<div class="content-box-content">					
					<div class="tab-content default-tab" id="tab1"> 
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								关于节点管理的一些说明.
							</div>
						</div>						
						<table>							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>名称</th>
								   <th>标题</th>								   
								   <th>状态</th>
								   <th>标注</th>
								   <th>父ID</th>
								   <th>等级</th>
								   <th>管理&nbsp;&nbsp;<a href="adminsnodeAdd.php">添加</a></th>								   
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="7">		
										<?=$Admin->showPages()?>								
									</td>
								</tr>
							</tfoot>
							<tbody>
   <?php
		foreach($Arr as $key){
    ?> 					
								<tr>
									<td><?=$key->id?></td>
									<td><?=$key->names?></td>
									<td><?=$key->title?></td>
									<td><?=$key->status==1?"有效":"无效"?></td>
									<td><?=$key->remark?></td>
									<td><?=$key->pid?></td>
									<td><?=$key->level?></td>
									<td>
										 <a href="adminsnodemod.php?id=<?=$key->id?>" title="Edit"><img src="Images/icons/pencil.png" alt="Edit" /></a>
										 <a href="?action=del&id=<?=$key->id?>" title="Delete"><img src="images/icons/cross.png" alt="Delete" /></a>									
									</td>
								</tr>														
	<?
		}
	?>
							</tbody>
							
						</table>
						
					</div> 
					
				</div> 
</div> 
</div>
</body>  
</html>
